<?php
namespace app\index\controller;

use app\common\controller\BaseController;
use think\Config;
use app\common\Auth;
use app\index\model\AdminNavModel;
use app\index\model\UsersModel;
class Index extends BaseController
{
    public function index()
    {
        return $this->fetch();
    }

    public function test()
    {
        $param = [
            'title' => '测试',
            'vo'=> ['title' => 'votile','id'=>'1'],
            'new'=> ['title' => 'votile'],
        ];
        return $this->fetch('test',$param);
    }
    public function elements()
    {
        return $this->fetch();
    }
    public function tree()
    {
        return $this->fetch();
    }

    public function getNavTree(){
        $model = new AdminNavModel();
        $data = $model->getNavTreeData(session('uid'),'level');
        return $this->ajaxReturn(200,$data,'获取成功');
    }

    public function login()
    {
       return $this->fetch();
    }


    public function app_user_manage(){
        return $this->fetch();
    }

    public function police_station()
    {
        return $this->fetch();
    }
    public function room_add()
    {
        return $this->fetch();
    }

    public function room_management()
    {
        return $this->fetch();
    }

    public function room_query()
    {
        return $this->fetch();
    }
    public function query_order(){
        return $this->fetch();
    }

    public function add(){
        return $this->fetch();
    }
}
